<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
            "http://www.w3.org/TR/REC-html40/loose.dtd">
<HTML>
<HEAD>



<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="hevea 1.08">
<LINK rel="stylesheet" type="text/css" href="embroot.css">
<TITLE>
Miscellaneous
</TITLE>
</HEAD>
<BODY >
<A HREF="embroot082.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="embroot073.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
<HR>

<H2 CLASS="section"><A NAME="htoc148">C.10</A>&nbsp;&nbsp;Miscellaneous</H2>
These two functions provide an alternative method for posting goals and
retrieving results. They are intended for applications with a simple structure
that require only infrequent call-return style control transfers
and little information passing between ECL<SUP><I>i</I></SUP>PS<SUP><I>e</I></SUP> and C. It is less powerful
and less efficient that the primitives described above.
<DL CLASS="description" COMPACT=compact><DT CLASS="dt-description">
<B>int		ec_exec_string(char*,ec_ref Vars)</B><DD CLASS="dd-description"><BR>
	let ECL<SUP><I>i</I></SUP>PS<SUP><I>e</I></SUP> execute a goal given in a string ECL<SUP><I>i</I></SUP>PS<SUP><I>e</I></SUP> syntax.
	Return value is PSUCCEED or PFAIL, depending on the result of
	the execution. If successful, Vars holds a list mapping the
	variables names within the string to their values after execution.<BR>
<BR>
<DT CLASS="dt-description"><B>int		ec_var_lookup(ec_ref Vars,char*,pword* pw)</B><DD CLASS="dd-description"><BR>
	Lookup the value of the variable with the given name.
	Vars is a list as returned by ec_exec_string().
</DL>
<HR>
<A HREF="embroot082.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
<A HREF="embroot073.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
</BODY>
</HTML>
